import request from '@/utils/request'

/**
 * 查询轮播图
 */
export const getBannerList = (condition: IPageQuery) => request(
  '/api/v1/admin/banners',
  { params: condition }
)

/**
 * 保存轮播图
 */
export const saveBanner = (data: any) => request(
  '/api/v1/admin/banners',
  { data, method: 'POST' }
)